function displayHoughspectrum(peaks, T)

% 计算θ值的频率
theta_values = T(peaks(:,2));
theta_freq = histcounts(theta_values, T);
% 归一化
theta_freq_normalized = theta_freq / sum(theta_freq);

% 绘制霍夫频谱图
theta_freq_smooth = smooth(theta_freq_normalized);
for i = 1:2
    theta_freq_smooth = smooth(theta_freq_smooth);
end
figure;
plot(T(1:end-1), theta_freq_smooth);
xlabel('\theta');
ylabel('Frequency');
title('Smoothed Hough Spectrum of map');
xlim([-90 89]);